-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix scan expense report and transaction are not hidden #39389
Conversation
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@DylanDylann Please help review PR once you have a chance |
@tienifr BUG: After scanning failed, clicking on the report preview, a report display on LHN with the title "Receipt missing detail" Screen.Recording.2024-04-04.at.20.37.10.mov |
I am checking this |
@DylanDylann I fixed issue. Here is the result: Screen.Recording.2024-04-10.at.14.50.23.mov |
src/libs/SidebarUtils.ts
Outdated
const hasBrickError = hasErrors || doesReportHaveViolations ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : ''; | ||
const shouldOverrideHidden = hasBrickError || isFocused || report.isPinned; | ||
const hasErrorsOtherThanFailedReceipt = doesReportHaveViolations || Object.values(allReportErrors).some((error) => error?.[0] !== 'report.genericSmartscanFailureMessage'); | ||
const shouldOverrideHidden = (hasBrickError && hasErrorsOtherThanFailedReceipt) || isFocused || report.isPinned; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tienifr I think hasBrickError
is redundant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DylanDylann You are correct. I just removed hasBrickError
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-04-12.at.15.08.24.movAndroid: mWeb ChromeScreen.Recording.2024-04-12.at.14.59.30.moviOS: NativeScreen.Recording.2024-04-12.at.15.08.47.moviOS: mWeb SafariUploading Screen Recording 2024-04-12 at 14.54.51.mov… MacOS: Chrome / SafariScreen.Recording.2024-04-12.at.14.53.20.movMacOS: DesktopScreen.Recording.2024-04-12.at.15.02.18.mp4 |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/danieldoglas in version: 1.4.63-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
Details
Fixed Issues
$ #37296
PROPOSAL: #37296 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-04-02.at.15.16.11.mov
Android: mWeb Chrome
Screen.Recording.2024-04-02.at.15.20.53.mov
iOS: Native
Screen.Recording.2024-04-02.at.15.13.08.mov
iOS: mWeb Safari
Screen.Recording.2024-04-02.at.15.09.45.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-02.at.15.03.18.mov
MacOS: Desktop
Screen.Recording.2024-04-02.at.15.06.24.mov